<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld" %>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<c-rt:set var="tp" value="${pu:pageableTag('key', 1, 10)}"/>
<c-rt:set var="params" value="${pu:addToList('paras', 'ProductQAA') }"/>

<c-rt:set var="params" value="${pu:addToList('paras', 'productId') }"/>
<c-rt:set var="params" value="${pu:addToList('paras', '333') }"/>
<c-rt:set var="hql">
from QuestionExtraAttribute qea where qea.question.type.name=? and qea.name=? and qea.value=? and qea.question.answer!=null
</c-rt:set>
<c-rt:set var="qeas" value="${pu:queryByHql(hql, params, null)}"/>
      <div class="tab-box"> 
      	<ul class="pdtab"> 
        	<li><a href="pdpage_01.html">商品信息</a></li> 
        	<li><a href="pdqa_login_no.html" class="pdtab-f">商品问与答(<b class="txt-bl">20</b>)</a></li> 
            <li><a href="pdpage_03.html">品牌介绍</a></li>   
            <li><a href="pdpage_04.html">购物须知</a></li>     
        </ul> 
        <div class="page-accound"> 
          <p align="right">共120筆：3/16 页 <a href="＃＃" class="a-togo">< 上一页</a> | <a href="＃＃" class="a-togo">下一页 ></a></p> 
        </div> 
          <table class="qa-bg"> 
          <c-rt:forEach items="${qeas }" var="qea">
            <tr class="bg-yl"> 
              <td width="15%" valign="top"><div class="qa-pic-ask">问题20</div></td> 
              <td width="65%" valign="top"><p><strong>${qea.question.memberId }：</strong></p> 
                ${qea.question.description }
              </p></td> 
              <td width="20%" valign="top" class="txt-time">[2009-11-23 12:05:37]</td> 
            </tr> 
            <tr> 
              <td valign="top"><div class="qa-pic-ans">回答</div></td> 
              <td valign="top" class="txt-gy-2">您好,小帮手推荐粉色唷~但还是要依照您平时喜欢顏色為主唷~建议您可对照尺寸表较為準确唷~谢谢^^#212</td> 
              <td valign="top" class="txt-time">[2009-11-23 12:05:37]</td> 
            </tr> 
          </c-rt:forEach>
          </table> 
  <div class="page-accound1"></div> 
          <p class="page-change"><a href="#" class="f-rt"><span class="a-top"></span>Top</a>第3页，共16页 <a href="＃＃" class="a-togo">&lt; 上一页</a> | <a href="#">1</a> <a href="#">2</a> <b class="pg-now">3</b> <a href="#">4</a> <a href="#">5</a> <a href="#">6</a> <a href="#">7</a> <a href="#">8</a> <a href="#">9</a> <a href="#">10</a> | <a href="＃＃" class="a-togo">下一页 &gt;</a></p> 
      </div> 
        <div class="qa-service"> 
          <h2>向商家提问</h2> 
          	<textarea name="textarea" id="textarea" cols="88" rows="5">请问订购的商品何时会送达,我挺急的谢谢您！</textarea> 
            <p class="qa-txtnote"><span class="txt-gy">还能输入 250 个字</span><span class="txt-rd"> (您提交的问题时只有商家看的到，商家回答后才会於页面上显示。)</span></p> 
            <p align="center"><span class="txt-code">驗證碼：</span><input size="20"  value="" /> <span class="txt-reg">12385786</span> <a href="#">看不清？换张图片</a></p> 
            <p class="btns-center"> <a href="#" class="btn-mid">提交</a></p> 
        </div> 
